import time


def progress_bar(total=100, sleep=0.01):
    for i in range(total + 1):
        percent = (i / float(total)) * 100
        print(f"\r任务进度: {percent:.2f}%", end="")
        time.sleep(sleep)
    print()
